package com.tan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @program: oauth2-access-token->TokenStoreConfiguration
 * @description:
 * @author: tanjingyu
 * @create: 2020-04-16 21:32
 **/

/**
 * 配置存储token的位置
 */
@Configuration
public class TokenStoreConfiguration {

    @Bean
    public TokenStore tokenStore(){
        return new InMemoryTokenStore();
    }
}
